package lab01;

import java.util.Scanner;
public class Test05 {
    public static void main(String[] args) {
        System.out.println("请输你的成绩：");
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        if (i >= 1&& i <= 5) {
            switch (i) {
                case 1: {
                    System.out.println("不及格");
                    break;
                }
                case 2: {
                    System.out.println("及格");
                    break;
                }
                case 3: {
                    System.out.println("中等");
                    break;
                }
                case 4: {
                    System.out.println("良好");
                    break;
                }
                case 5: {
                    System.out.println("优秀");
                    break;
                }

            }

        } else {
            System.out.println("请输入正确的成绩！");
        }
    }
}